package com.ljw.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ljw.service.MovesumService;
import com.ljw.vo.MovesumVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 入住记录表 前端控制器
 * </p>
 *
 * @author ljw
 * @since 2020-07-25
 */
@RestController
@RequestMapping("/movesum")
public class MovesumController {

    @Autowired
    private MovesumService movesumService;

    @GetMapping("/findAll")
    public Page<MovesumVo> findAll(@RequestParam int current, @RequestParam int size){
        Page<MovesumVo> page = new Page<>(current,size);
        return movesumService.findAll(page);
    }

}

